//2009/08/26 17:02:40
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <math.h>
#include <sstream>
#include <algorithm>

using namespace std;

class Prank
{
public:
    vector <int> realWeight(int apparentGain)
    {
		vector<int> v;
		for(int i=1; i<=100000; i++)
		{
			double temp = sqrt(1.0 * i * i - 1.0 * apparentGain);
			if(temp - int(temp) == 0 && temp != 0)
				v.push_back(i);
		}
		return v;
    }
};
